
import { createStore } from 'vuex'


// Create a new store instance.
const store = createStore({
  state:{
    isLogin : false
  },
  getters: {
    isLogin : state => state.isLogin,
  },
  mutations: {
    userStatus(state, tag) {
      state.isLogin = tag
    }
  },
  actions: {
    userLogin(commit, tag) {
      commit('userStatus',tag)
    }
  },
  modules: {
    
  }
 
})
export default store;
